import 'package:bluetooth_parse_plugin/src/base/instruction_base.dart';
import 'package:bluetooth_parse_plugin/src/lorin/lorin_instruction_enum.dart';
import 'package:bluetooth_parse_plugin/src/lorin/lorin_message.dart';

// Lorin指令
class LorinIntructionMessage extends InstructionBase<LorinMessage> {
  @override
  LorinMessage get getSnIntrMsg => LorinMessage.from(LorinIntructionEnum.sn);

  @override
  LorinMessage get getRealtimeInfoIntrMsg =>
      LorinMessage.from(LorinIntructionEnum.realtimeInfo);

  @override
  LorinMessage get getRealtimeStateIntrMsg =>
      LorinMessage.from(LorinIntructionEnum.realtimeState);

  @override
  LorinMessage get getRealtimeErrorIntrMsg =>
      LorinMessage.from(LorinIntructionEnum.realtimeError);

  @override
  LorinMessage get realtimeAllIntrMsg =>
      LorinMessage.from(LorinIntructionEnum.realtimeAll);

  @override
  LorinMessage get realtimeInfoBMSIntrMsg =>
      LorinMessage.from(LorinIntructionEnum.realtimeInfoBMS);

  @override
  LorinMessage get statisticOnceIntrMsg =>
      LorinMessage.from(LorinIntructionEnum.statisticOnce);

  @override
  LorinMessage get statisticsTotalIntrMsg =>
      LorinMessage.from(LorinIntructionEnum.statisticsTotal);

  @override
  LorinMessage get settingsAllIntrMsg =>
      LorinMessage.from(LorinIntructionEnum.settingsAll);
}
